<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>骑驴网-发布公司</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon"/>
	<link rel="stylesheet" type="text/css" href="css/comm.css">
	<style type="text/css">
	body {
		/*background-image: url("images/bdybg.jpg");*/
	}
	</style>

  </head>
  
  <body>
  	<%@ include file="../header.jsp" %>
	<center>
	<div style="width:980px;margin:0px;border-bottom:2px solid #4273B3;height:80px;">
    	<div style="float:left;display:inline;">
			<img alt="骑驴网" src="images/qilv.png">
		</div>
		<div style="display:inline;float:left;font-size:24px;font-weight:bold;padding:22px 0px 5px 15px;">
			发布公司
		</div>
	</div>
    <div class="FormDiv">
   		<div style="display:${error==null?'none':''}" class="errorBox">${error}</div>
	    <form action="company.html?method=addCompany" method="post" style="clear:left;">
		    <ul style="margin:10px;padding:10px;">
		    	<li>
		    	公司名称（全称）：<br/><input type="text" alt="notNull" name="cname" value="${param.cname}" style="width:450px;">
		    	<label>请保证公司名的惟一性</label>
		    	</li>
		    	<li>
		    	公司详细地址：<br/><input type="text" name="caddress" value="${param.caddress}"  style="width:450px;">
		    	<label>请输入公司完整地址，包括省市</label>
		    	</li>
		    	<li>
		    	公司规模：<br/>
		    	<select name="cscale" style="width:200px;">
		    		<option value="10" ${param.cscale==10?'selected="selected"':''}>10人以下</option>
		    		<option value="100" ${param.cscale==100?'selected="selected"':''}>10-100人</option>
		    		<option value="500" ${param.cscale==500?'selected="selected"':''}>100-500人</option>
		    		<option value="1000" ${param.cscale==1000?'selected="selected"':''}>500-1000人</option>
		    		<option value="-1" ${param.cscale==-1?'selected="selected"':''}>1000人以上</option>
		    	</select>
		    	</li>
		    	<li>
		    	公司经营业务：<br/>
		    	<select name="cbusiness" style="width:200px;">
		    		<option value="1" ${param.cbusiness==1?'selected="selected"':''}>电信</option>
		    		<option value="2" ${param.cbusiness==2?'selected="selected"':''}>银行/金融/保险</option>
		    		<option value="3" ${param.cbusiness==3?'selected="selected"':''}>教育</option>
		    		<option value="4" ${param.cbusiness==4?'selected="selected"':''}>医疗</option>
		    		<option value="5" ${param.cbusiness==5?'selected="selected"':''}>政府</option>
		    		<option value="6" ${param.cbusiness==6?'selected="selected"':''}>互联网</option>
		    		<option value="7" ${param.cbusiness==7?'selected="selected"':''}>餐饮</option>
		    		<option value="8" ${param.cbusiness==8?'selected="selected"':''}>其他</option>
		    	</select>
		    	</li>
		    	<li style="display:none;">
		    	公司地图（可选）：<br/><textarea name="cmap" cols="80"> ${param.cmap}</textarea>
		    	<label>此处可插入公司详细地址的Google地图代码</label>
		    	</li>
		    	<li>
		    	公司简介（必填）：<br/><textarea alt="notNull" name="cdesc" rows="5" cols="80">${param.cdesc}</textarea>
		    	<label>简介请控制在1000字以内</label>
		    	</li>
		    	<li>
		    	请输入验证码：<br/><input alt="notNull" type="text" name="authCode" style="width:200px;" onblur="notNull(this);">
		    	<img id="auth" style="margin-left:20px;" src="pages/share/authcode.jsp">
		    	<label>看不清楚，<a href="javascript:;" onclick="document.getElementById('auth').src='pages/share/authcode.jsp?ts='+new Date().getTime();">换一个</a></label>
		    	<br/><label>验证码不区分大小写</label>
		    	</li>
		    </ul>
		    <center>
		    <input type="submit" value=" 确 定 发 布 " style="padding:5px 3px;" onmousemove="this.style.backgroundColor='#9FDFE9';" onmouseout="this.style.backgroundColor='white';">
		    </center>
	    </form>
    </div>
    </center>
    <%@ include file="../tailer.jsp" %>
  </body>
  <script type="text/javascript" src="js/javer.js"></script>
  <script type="text/javascript" src="js/validate.js"></script>
</html>
